﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebRamosUC.Models.LogOnModel>" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Iniciar sesión
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm()) { %>
        <div>
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Correo) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.Correo) %>
                    <%= Html.ValidationMessageFor(m => m.Correo, "*")%>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Password) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.Password) %>
                    <%= Html.ValidationMessageFor(m => m.Password,"*") %>
                    <br />
                    <%= Html.ActionLink("Recuperar contraseña", "Resetear")%>
                </div>
                
                <%= Html.ValidationSummary() %>              
            
                <div class="editor-label">
                    <%= Html.CheckBoxFor(m => m.RememberMe) %>
                    <%= Html.LabelFor(m => m.RememberMe) %>
                </div>  
                
                

                <p>
                    <input type="submit" value="Iniciar sesión" />
                </p>
        </div>
    <% } %>
</asp:Content>
